#include<stdio.h>
#include<stdlib.h>

void reduce1(char * str)
{
	
}

void reduce2(char * str)
{

}

int main()
{
	char str[1001];
	while(scanf("%s", str) != EOF)
	{
		while(1)
		{
			char *zp = strchr(str, "z");
			char *jp = strchr(str, "j");
			if(!zp || !jp)
			{
				printf("Wrong Answer\n");
				break;
			}
			char *i = zp;
			int count = 0;
			for(++i;i != jp; ++i)
			{
				if(*i == 'o')
					count++;
				else
					break;
			}
			if(i != jp)
			{
				printf("Wrong Answer\n");
				break;
			}

			if(count < 1)
			{
				printf("Wrong Answer\n");
				break;
			}

			if(count == 1)
			{
				char a[1001] = {0};
				strncpy(a, zp, (jp-zp)/sizeof(char));
				strcat(a, "\0");
				*(jp-1) = 'j';
				for(i = jp+1; i != '\0'; ++i)
				{
					if(*i == )
				}
			}
			else
			{
				reduce2(str);
			}
		}
	}
}
